package org.exhaust.framework.net.cmpp20.decoder;

import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import org.exhaust.framework.net.cmpp20.protocol.CMPPMessage;
import org.exhaust.framework.net.common.protocol.decoder.ByteBufDecoderHelper;

public class CMPPMessageDecoderHelper implements ByteBufDecoderHelper<CMPPMessage> {
    @Override
    public CMPPMessage decode(ChannelHandlerContext ctx, ByteBuf in) {
        CMPPMessage message = new CMPPMessage();
        message.decode(in,null);
        return message;
    }
}
